using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class DelBottleContact : GeneratedMessageLite<DelBottleContact, DelBottleContact.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<DelBottleContact, DelBottleContact.Builder>
		{
			private bool resultIsReadOnly;
			private DelBottleContact result;
			protected override DelBottleContact.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override DelBottleContact MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override DelBottleContact DefaultInstanceForType
			{
				get
				{
					return DelBottleContact.DefaultInstance;
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public Builder()
			{
				this.result = DelBottleContact.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(DelBottleContact cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private DelBottleContact PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					DelBottleContact other = this.result;
					this.result = new DelBottleContact();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override DelBottleContact.Builder Clear()
			{
				this.result = DelBottleContact.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override DelBottleContact.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new DelBottleContact.Builder(this.result);
				}
				return new DelBottleContact.Builder().MergeFrom(this.result);
			}
			public override DelBottleContact BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override DelBottleContact.Builder MergeFrom(IMessageLite other)
			{
				if (other is DelBottleContact)
				{
					return this.MergeFrom((DelBottleContact)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override DelBottleContact.Builder MergeFrom(DelBottleContact other)
			{
				return this;
			}
			public override DelBottleContact.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override DelBottleContact.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(DelBottleContact._delBottleContactFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = DelBottleContact._delBottleContactFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasUserName = input.ReadString(ref this.result.userName_);
					}
				}
				return this;
			}
			public DelBottleContact.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public DelBottleContact.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
		}
		public const int UserNameFieldNumber = 1;
		private static readonly DelBottleContact defaultInstance;
		private static readonly string[] _delBottleContactFieldNames;
		private static readonly uint[] _delBottleContactFieldTags;
		private bool hasUserName;
		private string userName_ = "";
		private int memoizedSerializedSize = -1;
		public static DelBottleContact DefaultInstance
		{
			get
			{
				return DelBottleContact.defaultInstance;
			}
		}
		public override DelBottleContact DefaultInstanceForType
		{
			get
			{
				return DelBottleContact.DefaultInstance;
			}
		}
		protected override DelBottleContact ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.UserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private DelBottleContact()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] delBottleContactFieldNames = DelBottleContact._delBottleContactFieldNames;
			if (this.hasUserName)
			{
				output.WriteString(1, delBottleContactFieldNames[0], this.UserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			DelBottleContact delBottleContact = value as DelBottleContact;
			return delBottleContact != null && (this.hasUserName == delBottleContact.hasUserName && (!this.hasUserName || this.userName_.Equals(delBottleContact.userName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<DelBottleContact, DelBottleContact.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
		}
		public static DelBottleContact ParseFrom(byte[] data)
		{
			return DelBottleContact.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private DelBottleContact MakeReadOnly()
		{
			return this;
		}
		public static DelBottleContact.Builder CreateBuilder()
		{
			return new DelBottleContact.Builder();
		}
		public override DelBottleContact.Builder ToBuilder()
		{
			return DelBottleContact.CreateBuilder(this);
		}
		public override DelBottleContact.Builder CreateBuilderForType()
		{
			return new DelBottleContact.Builder();
		}
		public static DelBottleContact.Builder CreateBuilder(DelBottleContact prototype)
		{
			return new DelBottleContact.Builder(prototype);
		}
		static DelBottleContact()
		{
			DelBottleContact.defaultInstance = new DelBottleContact().MakeReadOnly();
			DelBottleContact._delBottleContactFieldNames = new string[]
			{
				"UserName"
			};
			DelBottleContact._delBottleContactFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.DelBottleContact.Descriptor, null);
		}
	}
}
